.class public Lrexsee/core/widget/DivDialog;
.super Landroid/app/Dialog;
.source "DivDialog.java"


# instance fields
.field public final div:Lrexsee/core/widget/Div;

.field protected final mBrowser:Lrexsee/core/browser/Browser;

.field protected final mContext:Landroid/content/Context;

.field private final mDialog:Landroid/content/DialogInterface;

.field private final mDialogId:Ljava/lang/String;

.field private final mHandler:Landroid/os/Handler;

.field private final maxOffset:F

.field private originalX:F

.field private originalY:F

.field public final styleSheet:Lrexsee/core/style/StyleSheet;

.field private syncTag:Z

.field private x:F

.field private y:F


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;)V
    .locals 11
    .param p1, "browser"    # Lrexsee/core/browser/Browser;
    .param p2, "dialogId"    # Ljava/lang/String;
    .param p3, "style"    # Ljava/lang/String;

    .prologue
    const/4 v10, 0x2

    const/4 v9, 0x1

    const/4 v7, 0x0

    const/4 v6, -0x1

    const-string v8, "true"

    .line 39
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v4

    const v5, 0x1030059

    invoke-direct {p0, v4, v5}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    .line 26
    new-instance v4, Landroid/os/Handler;

    invoke-direct {v4}, Landroid/os/Handler;-><init>()V

    iput-object v4, p0, Lrexsee/core/widget/DivDialog;->mHandler:Landroid/os/Handler;

    .line 29
    const/high16 v4, 0x41200000    # 10.0f

    iput v4, p0, Lrexsee/core/widget/DivDialog;->maxOffset:F

    .line 35
    iput-boolean v7, p0, Lrexsee/core/widget/DivDialog;->syncTag:Z

    .line 40
    iput-object p1, p0, Lrexsee/core/widget/DivDialog;->mBrowser:Lrexsee/core/browser/Browser;

    .line 41
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v4

    iput-object v4, p0, Lrexsee/core/widget/DivDialog;->mContext:Landroid/content/Context;

    .line 42
    iput-object p0, p0, Lrexsee/core/widget/DivDialog;->mDialog:Landroid/content/DialogInterface;

    .line 43
    iput-object p2, p0, Lrexsee/core/widget/DivDialog;->mDialogId:Ljava/lang/String;

    .line 44
    new-instance v4, Lrexsee/core/style/StyleSheet;

    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->mContext:Landroid/content/Context;

    invoke-direct {v4, v5}, Lrexsee/core/style/StyleSheet;-><init>(Landroid/content/Context;)V

    invoke-virtual {v4, p3}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    move-result-object v4

    iput-object v4, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    .line 46
    new-instance v4, Lrexsee/core/widget/Div;

    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->mContext:Landroid/content/Context;

    invoke-direct {v4, v5}, Lrexsee/core/widget/Div;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    .line 47
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iput-object v5, v4, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    .line 48
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    invoke-virtual {v4}, Lrexsee/core/widget/Div;->setDivStyle()V

    .line 49
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    new-instance v5, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v5, v6, v6}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v4, v5}, Lrexsee/core/widget/Div;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 50
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v4}, Lrexsee/core/style/StyleSheet;->getWindowStyle()I

    move-result v3

    .line 51
    .local v3, "windowStyle":I
    if-eqz v3, :cond_0

    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    invoke-virtual {v4, v3}, Lrexsee/core/widget/Div;->setBackgroundResource(I)V

    .line 52
    :cond_0
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->window_moveable:Ljava/lang/String;

    const-string v5, "true"

    invoke-virtual {v4, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_6

    .line 53
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    invoke-virtual {v4, v9}, Lrexsee/core/widget/Div;->setClickable(Z)V

    .line 54
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    new-instance v5, Lrexsee/core/widget/DivDialog$1;

    invoke-direct {v5, p0}, Lrexsee/core/widget/DivDialog$1;-><init>(Lrexsee/core/widget/DivDialog;)V

    invoke-virtual {v4, v5}, Lrexsee/core/widget/Div;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 83
    :goto_0
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->window_auto_hide:Ljava/lang/String;

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    .line 84
    .local v1, "autoHide":I
    if-lez v1, :cond_1

    .line 85
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->mHandler:Landroid/os/Handler;

    new-instance v5, Lrexsee/core/widget/DivDialog$2;

    invoke-direct {v5, p0}, Lrexsee/core/widget/DivDialog$2;-><init>(Lrexsee/core/widget/DivDialog;)V

    .line 90
    mul-int/lit16 v6, v1, 0x3e8

    int-to-long v6, v6

    .line 85
    invoke-virtual {v4, v5, v6, v7}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 93
    :cond_1
    invoke-virtual {p0}, Lrexsee/core/widget/DivDialog;->getWindow()Landroid/view/Window;

    move-result-object v2

    .line 94
    .local v2, "window":Landroid/view/Window;
    invoke-virtual {v2, v9}, Landroid/view/Window;->requestFeature(I)Z

    .line 95
    invoke-virtual {v2, v10, v10}, Landroid/view/Window;->setFlags(II)V

    .line 96
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->window_fullscreen:Ljava/lang/String;

    const-string v5, "fullscreen"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_2

    const/16 v4, 0x400

    const/16 v5, 0x400

    invoke-virtual {v2, v4, v5}, Landroid/view/Window;->setFlags(II)V

    .line 97
    :cond_2
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->window_modeless:Ljava/lang/String;

    const-string v5, "true"

    invoke-virtual {v4, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_3

    const/16 v4, 0x20

    const/16 v5, 0x20

    invoke-virtual {v2, v4, v5}, Landroid/view/Window;->setFlags(II)V

    .line 98
    :cond_3
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->window_blur_behind:Ljava/lang/String;

    const-string v5, "true"

    invoke-virtual {v4, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_4

    const/4 v4, 0x4

    const/4 v5, 0x4

    invoke-virtual {v2, v4, v5}, Landroid/view/Window;->setFlags(II)V

    .line 99
    :cond_4
    sget-object v4, Landroid/os/Build$VERSION;->SDK:Ljava/lang/String;

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    const/4 v5, 0x5

    if-lt v4, v5, :cond_5

    .line 101
    const/high16 v0, 0x100000

    .line 102
    .local v0, "FLAG_SHOW_WALLPAPER":I
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->window_show_wallpaper:Ljava/lang/String;

    const-string v5, "true"

    invoke-virtual {v4, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_5

    invoke-virtual {v2, v0, v0}, Landroid/view/Window;->setFlags(II)V

    .line 107
    .end local v0    # "FLAG_SHOW_WALLPAPER":I
    :cond_5
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->window_cancelable:Ljava/lang/String;

    const-string v5, "true"

    invoke-virtual {v4, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    invoke-virtual {p0, v4}, Lrexsee/core/widget/DivDialog;->setCancelable(Z)V

    .line 108
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->window_outside_cancelable:Ljava/lang/String;

    const-string v5, "true"

    invoke-virtual {v4, v8}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    invoke-virtual {p0, v4}, Lrexsee/core/widget/DivDialog;->setCanceledOnTouchOutside(Z)V

    .line 110
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    invoke-virtual {p0, v4}, Lrexsee/core/widget/DivDialog;->setContentView(Landroid/view/View;)V

    .line 112
    return-void

    .line 80
    .end local v1    # "autoHide":I
    .end local v2    # "window":Landroid/view/Window;
    :cond_6
    iget-object v4, p0, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    invoke-virtual {v4, v7}, Lrexsee/core/widget/Div;->setClickable(Z)V

    goto/16 :goto_0
.end method

.method static synthetic access$0(Lrexsee/core/widget/DivDialog;F)V
    .locals 0

    .prologue
    .line 32
    iput p1, p0, Lrexsee/core/widget/DivDialog;->x:F

    return-void
.end method

.method static synthetic access$1(Lrexsee/core/widget/DivDialog;F)V
    .locals 0

    .prologue
    .line 33
    iput p1, p0, Lrexsee/core/widget/DivDialog;->y:F

    return-void
.end method

.method static synthetic access$2(Lrexsee/core/widget/DivDialog;)F
    .locals 1

    .prologue
    .line 32
    iget v0, p0, Lrexsee/core/widget/DivDialog;->x:F

    return v0
.end method

.method static synthetic access$3(Lrexsee/core/widget/DivDialog;F)V
    .locals 0

    .prologue
    .line 30
    iput p1, p0, Lrexsee/core/widget/DivDialog;->originalX:F

    return-void
.end method

.method static synthetic access$4(Lrexsee/core/widget/DivDialog;)F
    .locals 1

    .prologue
    .line 33
    iget v0, p0, Lrexsee/core/widget/DivDialog;->y:F

    return v0
.end method

.method static synthetic access$5(Lrexsee/core/widget/DivDialog;F)V
    .locals 0

    .prologue
    .line 31
    iput p1, p0, Lrexsee/core/widget/DivDialog;->originalY:F

    return-void
.end method

.method static synthetic access$6(Lrexsee/core/widget/DivDialog;)F
    .locals 1

    .prologue
    .line 30
    iget v0, p0, Lrexsee/core/widget/DivDialog;->originalX:F

    return v0
.end method

.method static synthetic access$7(Lrexsee/core/widget/DivDialog;)F
    .locals 1

    .prologue
    .line 31
    iget v0, p0, Lrexsee/core/widget/DivDialog;->originalY:F

    return v0
.end method

.method static synthetic access$8(Lrexsee/core/widget/DivDialog;)Landroid/content/DialogInterface;
    .locals 1

    .prologue
    .line 24
    iget-object v0, p0, Lrexsee/core/widget/DivDialog;->mDialog:Landroid/content/DialogInterface;

    return-object v0
.end method

.method static synthetic access$9(Lrexsee/core/widget/DivDialog;Z)V
    .locals 0

    .prologue
    .line 35
    iput-boolean p1, p0, Lrexsee/core/widget/DivDialog;->syncTag:Z

    return-void
.end method


# virtual methods
.method public addChild(Landroid/view/View;)V
    .locals 2
    .param p1, "child"    # Landroid/view/View;

    .prologue
    .line 136
    iget-object v0, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v0, v0, Lrexsee/core/style/StyleSheet;->window_moveable:Ljava/lang/String;

    const-string v1, "true"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {p1, v0}, Landroid/view/View;->setClickable(Z)V

    .line 137
    iget-object v0, p0, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    invoke-virtual {v0, p1}, Lrexsee/core/widget/Div;->addChild(Landroid/view/View;)V

    .line 138
    return-void

    .line 136
    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public getDialogId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 133
    iget-object v0, p0, Lrexsee/core/widget/DivDialog;->mDialogId:Ljava/lang/String;

    return-object v0
.end method

.method public getStyle(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .param p1, "name"    # Ljava/lang/String;

    .prologue
    .line 246
    iget-object v0, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v0, p1}, Lrexsee/core/style/StyleSheet;->getStyle(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected onClick(Landroid/content/DialogInterface;)V
    .locals 0
    .param p1, "dialog"    # Landroid/content/DialogInterface;

    .prologue
    .line 250
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x1

    .line 115
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    .line 116
    iget-object v0, p0, Lrexsee/core/widget/DivDialog;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->menu:Lrexsee/core/menu/RexseeMenu;

    iget-boolean v0, v0, Lrexsee/core/menu/RexseeMenu;->isOptionsMenuOpen:Z

    if-eqz v0, :cond_1

    .line 117
    iget-object p0, p0, Lrexsee/core/widget/DivDialog;->mContext:Landroid/content/Context;

    .end local p0    # "this":Lrexsee/core/widget/DivDialog;
    check-cast p0, Landroid/app/Activity;

    invoke-virtual {p0}, Landroid/app/Activity;->closeOptionsMenu()V

    move v0, v1

    .line 129
    :goto_0
    return v0

    .line 120
    .restart local p0    # "this":Lrexsee/core/widget/DivDialog;
    :cond_0
    const/16 v0, 0x52

    if-ne p1, v0, :cond_2

    .line 121
    iget-object p0, p0, Lrexsee/core/widget/DivDialog;->mContext:Landroid/content/Context;

    .end local p0    # "this":Lrexsee/core/widget/DivDialog;
    check-cast p0, Landroid/app/Activity;

    invoke-virtual {p0}, Landroid/app/Activity;->openOptionsMenu()V

    .line 129
    :cond_1
    :goto_1
    const/4 v0, 0x0

    goto :goto_0

    .line 122
    .restart local p0    # "this":Lrexsee/core/widget/DivDialog;
    :cond_2
    const/16 v0, 0x54

    if-ne p1, v0, :cond_3

    move v0, v1

    .line 123
    goto :goto_0

    .line 124
    :cond_3
    const/16 v0, 0x50

    if-eq p1, v0, :cond_1

    .line 125
    const/16 v0, 0x18

    if-eq p1, v0, :cond_1

    goto :goto_1
.end method

.method public removeChilds()V
    .locals 1

    .prologue
    .line 184
    iget-object v0, p0, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    invoke-virtual {v0}, Lrexsee/core/widget/Div;->removeChilds()V

    .line 185
    return-void
.end method

.method public setStyle(Ljava/lang/String;)V
    .locals 2
    .param p1, "style"    # Ljava/lang/String;

    .prologue
    .line 189
    const/4 v0, 0x0

    iput-boolean v0, p0, Lrexsee/core/widget/DivDialog;->syncTag:Z

    .line 190
    iget-object v0, p0, Lrexsee/core/widget/DivDialog;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/core/widget/DivDialog$3;

    invoke-direct {v1, p0, p1}, Lrexsee/core/widget/DivDialog$3;-><init>(Lrexsee/core/widget/DivDialog;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 235
    :goto_0
    iget-boolean v0, p0, Lrexsee/core/widget/DivDialog;->syncTag:Z

    if-eqz v0, :cond_0

    .line 242
    return-void

    .line 237
    :cond_0
    const-wide/16 v0, 0x14

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 238
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public start()V
    .locals 0

    .prologue
    .line 140
    invoke-virtual {p0}, Lrexsee/core/widget/DivDialog;->startDivDialog()V

    .line 141
    return-void
.end method

.method protected startDivDialog()V
    .locals 7

    .prologue
    .line 145
    :try_start_0
    invoke-virtual {p0}, Lrexsee/core/widget/DivDialog;->show()V

    .line 147
    invoke-virtual {p0}, Lrexsee/core/widget/DivDialog;->getWindow()Landroid/view/Window;

    move-result-object v4

    .line 148
    .local v4, "window":Landroid/view/Window;
    invoke-virtual {v4}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    .line 150
    .local v0, "attr":Landroid/view/WindowManager$LayoutParams;
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v5, v5, Lrexsee/core/style/StyleSheet;->window_split_screen:Ljava/lang/String;

    const-string v6, "true"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_6

    const/16 v5, 0x7db

    :goto_0
    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->type:I

    .line 151
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getWindowAnimation()I

    move-result v5

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

    .line 152
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getAlpha()F

    move-result v5

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->alpha:F

    .line 153
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v5, v5, Lrexsee/core/style/StyleSheet;->window_dim_amount:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v5

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F

    .line 155
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getWindowGravity()I

    move-result v5

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I

    .line 157
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getTop()I

    move-result v3

    .line 158
    .local v3, "top":I
    if-gez v3, :cond_0

    .line 159
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v5, v5, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget v5, v5, Lrexsee/core/application/RexseeApplication;->screenHeight:I

    add-int/2addr v3, v5

    .line 161
    :cond_0
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getLeft()I

    move-result v2

    .line 162
    .local v2, "left":I
    if-gez v2, :cond_1

    .line 163
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v5, v5, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget v5, v5, Lrexsee/core/application/RexseeApplication;->screenWidth:I

    add-int/2addr v2, v5

    .line 165
    :cond_1
    if-eqz v2, :cond_2

    iput v2, v0, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 166
    :cond_2
    if-eqz v3, :cond_3

    iput v3, v0, Landroid/view/WindowManager$LayoutParams;->y:I

    .line 168
    :cond_3
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getWidth()I

    move-result v5

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 169
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getHeight()I

    move-result v5

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->height:I

    .line 171
    invoke-virtual {v4, v0}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    .line 173
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v5, v5, Lrexsee/core/style/StyleSheet;->visibility:Ljava/lang/String;

    const-string v6, "hidden"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_4

    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v5, v5, Lrexsee/core/style/StyleSheet;->visibility:Ljava/lang/String;

    const-string v6, "gone"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_5

    .line 174
    :cond_4
    invoke-virtual {p0}, Lrexsee/core/widget/DivDialog;->hide()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 181
    .end local v0    # "attr":Landroid/view/WindowManager$LayoutParams;
    .end local v2    # "left":I
    .end local v3    # "top":I
    .end local v4    # "window":Landroid/view/Window;
    :cond_5
    :goto_1
    return-void

    .line 150
    .restart local v0    # "attr":Landroid/view/WindowManager$LayoutParams;
    .restart local v4    # "window":Landroid/view/Window;
    :cond_6
    const/4 v5, 0x2

    goto :goto_0

    .line 177
    .end local v0    # "attr":Landroid/view/WindowManager$LayoutParams;
    .end local v4    # "window":Landroid/view/Window;
    :catch_0
    move-exception v5

    move-object v1, v5

    .line 178
    .local v1, "e":Ljava/lang/Exception;
    iget-object v5, p0, Lrexsee/core/widget/DivDialog;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6, v1}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_1
.end method
